<?php
class Model_ExperienciaProfissionalDAO extends ORM{
	
	/***************
	   DATABASE   
	***************/
	
	protected $_table_name  = 'ExperienciaProfissional';
	protected $_table_names_plural = FALSE;
	protected $_primary_key = 'idExperienciaProfissional';
	protected $_primary_val = 'possuiExperiencia';
	
	protected $_belongs_to = array('curriculo' => array('model' => 'CurriculoDAO', 'foreign_key' => 'idCurriculo'));
	
	protected $_has_many = array('empresa' => array('model' => 'EmpresaDAO', 'foreign_key' => 'empresas_idExperienciaProfissional'));
}
?>